import http from "@/utils/http.js";

export function imgSelfieAnime(file){
   return http.post('/api/BdImageEnhance/selfieAnime',file)
}


export function imgStyleTrans(file,choice){
   console.log("choice")
   console.log(choice)
   choice=parseInt(choice)
   return http.post('/api/BdImageEnhance/styleTrans',file,{
      params: {
         choice: choice
      }
   })
}


//图像无损放大
export function imageQualityEnhance(file){
   return http.post('/api/BdImageEnhance/imageQualityEnhance',file)
}


//图片清晰度增强
export function imageDefinitionEnhance(file){
   return http.post('/api/BdImageEnhance/imageDefinitionEnhance',file)
}

export function imageColourize(file){
   return http.post('/api/BdImageEnhance/colourize',file)
}
